package com.yxhl.km.module.person.entity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by 张亚楠 on 2018/7/3.
 * 个人信息
 */

public class UserInfo implements Serializable {


    /**
     * success : true
     * data : {"id":"666","createTime":"2017-06-06 17:35:00","deleteFlag":1,"name":"马","phone":"17070010415","level":0,"status":1,"farmId":"96f0add7ae0a4b0688e758bab212593d","cellName":"A库","userType":1,"companyFlag":1,"roleList":[{"id":"93ea261710994bc3847e962b016d864a","createTime":"2017-06-09 14:30:31","deleteFlag":1,"name":"装车负责人","num":"103","roleType":1},{"id":"b30e0b1b62a54dc5b4059336d3e95ce7","createTime":"2017-06-09 14:30:51","deleteFlag":1,"name":"农场负责人","num":"110","roleType":1},{"id":"c1a967b75a37453aa0fd8bb591a716a1","createTime":"2017-06-09 14:30:05","deleteFlag":1,"name":"农场司磅员","num":"102","roleType":1}],"farmName":"白音诺尔"}
     */

    private boolean success;
    private DataBean data;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean implements Serializable{
        /**
         * id : 666
         * createTime : 2017-06-06 17:35:00
         * deleteFlag : 1
         * name : 马
         * phone : 17070010415
         * level : 0
         * status : 1
         * farmId : 96f0add7ae0a4b0688e758bab212593d
         * cellName : A库
         * userType : 1
         * companyFlag : 1
         * roleList : [{"id":"93ea261710994bc3847e962b016d864a","createTime":"2017-06-09 14:30:31","deleteFlag":1,"name":"装车负责人","num":"103","roleType":1},{"id":"b30e0b1b62a54dc5b4059336d3e95ce7","createTime":"2017-06-09 14:30:51","deleteFlag":1,"name":"农场负责人","num":"110","roleType":1},{"id":"c1a967b75a37453aa0fd8bb591a716a1","createTime":"2017-06-09 14:30:05","deleteFlag":1,"name":"农场司磅员","num":"102","roleType":1}]
         * farmName : 白音诺尔
         */

        private String id;
        private String createTime;
        private int deleteFlag;
        private String name;
        private String phone;
        private int level;
        private int status;
        private String farmId;
        private String cellName;
        private int userType;
        private int companyFlag;
        private String farmName;
        private String headimg;
        private List<RoleListBean> roleList;

        public String getId() {
            return id;
        }

        public String getHeadimg() {
            return headimg;
        }

        public void setHeadimg(String headimg) {
            this.headimg = headimg;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public int getDeleteFlag() {
            return deleteFlag;
        }

        public void setDeleteFlag(int deleteFlag) {
            this.deleteFlag = deleteFlag;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public int getLevel() {
            return level;
        }

        public void setLevel(int level) {
            this.level = level;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public String getFarmId() {
            return farmId;
        }

        public void setFarmId(String farmId) {
            this.farmId = farmId;
        }

        public String getCellName() {
            return cellName;
        }

        public void setCellName(String cellName) {
            this.cellName = cellName;
        }

        public int getUserType() {
            return userType;
        }

        public void setUserType(int userType) {
            this.userType = userType;
        }

        public int getCompanyFlag() {
            return companyFlag;
        }

        public void setCompanyFlag(int companyFlag) {
            this.companyFlag = companyFlag;
        }

        public String getFarmName() {
            return farmName;
        }

        public void setFarmName(String farmName) {
            this.farmName = farmName;
        }

        public List<RoleListBean> getRoleList() {
            return roleList;
        }

        public void setRoleList(List<RoleListBean> roleList) {
            this.roleList = roleList;
        }

        public static class RoleListBean implements Serializable{
            /**
             * id : 93ea261710994bc3847e962b016d864a
             * createTime : 2017-06-09 14:30:31
             * deleteFlag : 1
             * name : 装车负责人
             * num : 103
             * roleType : 1
             */

            private String id;
            private String createTime;
            private int deleteFlag;
            private String name;
            private String num;
            private int roleType;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getCreateTime() {
                return createTime;
            }

            public void setCreateTime(String createTime) {
                this.createTime = createTime;
            }

            public int getDeleteFlag() {
                return deleteFlag;
            }

            public void setDeleteFlag(int deleteFlag) {
                this.deleteFlag = deleteFlag;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getNum() {
                return num;
            }

            public void setNum(String num) {
                this.num = num;
            }

            public int getRoleType() {
                return roleType;
            }

            public void setRoleType(int roleType) {
                this.roleType = roleType;
            }

            @Override
            public String toString() {
                return "RoleListBean{" +
                        "id='" + id + '\'' +
                        ", createTime='" + createTime + '\'' +
                        ", deleteFlag=" + deleteFlag +
                        ", name='" + name + '\'' +
                        ", num='" + num + '\'' +
                        ", roleType=" + roleType +
                        '}';
            }
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "id='" + id + '\'' +
                    ", createTime='" + createTime + '\'' +
                    ", deleteFlag=" + deleteFlag +
                    ", name='" + name + '\'' +
                    ", phone='" + phone + '\'' +
                    ", level=" + level +
                    ", status=" + status +
                    ", farmId='" + farmId + '\'' +
                    ", cellName='" + cellName + '\'' +
                    ", userType=" + userType +
                    ", companyFlag=" + companyFlag +
                    ", farmName='" + farmName + '\'' +
                    ", headimg='" + headimg + '\'' +
                    ", roleList=" + roleList +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "success=" + success +
                ", data=" + data +
                '}';
    }
}
